<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>SurfaceChart</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">SurfaceChart</p>
<hr class="separator">
<div class="content">
The SurfaceChart class represents surface charts. SurfaceChart is a subclass of <a href="ThreeDChart.htm">ThreeDChart</a>.
<br><br>
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Method</th><th width="19%">Inherited</th><th>Description</th>
</tr>
<tr>
<td><a href="SurfaceChart.SurfaceChart.htm">SurfaceChart</a></td><td>(Self)</td><td>Creates a new <a href="SurfaceChart.htm">SurfaceChart</a> object.</td></tr><tr><td><a href="SurfaceChart.setData.htm">setData</a></td><td>(Self)</td><td>Sets the data for the surface chart.</td></tr><tr><td><a href="SurfaceChart.setInterpolation.htm">setInterpolation</a></td><td>(Self)</td><td>Enables and sets the degree and method of interpolation of the data points.</td></tr><tr><td><a href="SurfaceChart.setShadingMode.htm">setShadingMode</a></td><td>(Self)</td><td>Sets the shading mode for the surface.</td></tr><tr><td><a href="SurfaceChart.setLighting.htm">setLighting</a></td><td>(Self)</td><td>Sets the Phong lighting parameters for the front side of the surface.</td></tr><tr><td><a href="SurfaceChart.setBackSideBrightness.htm">setBackSideBrightness</a></td><td>(Self)</td><td>Sets the back side brightness as a ratio of the front side brightness.</td></tr><tr><td><a href="SurfaceChart.setBackSideLighting.htm">setBackSideLighting</a></td><td>(Self)</td><td>Sets the Phong lighting parameters for the back side of the surface.</td></tr><tr><td><a href="SurfaceChart.setBackSideColor.htm">setBackSideColor</a></td><td>(Self)</td><td>Sets the color of the back side of the surface.</td></tr><tr><td><a href="SurfaceChart.setSurfaceAxisGrid.htm">setSurfaceAxisGrid</a></td><td>(Self)</td><td>Sets the colors of the axis grid lines on the surface.</td></tr><tr><td><a href="SurfaceChart.setSurfaceDataGrid.htm">setSurfaceDataGrid</a></td><td>(Self)</td><td>Sets the colors of the data grid lines on the surface.</td></tr><tr><td><a href="SurfaceChart.setContourColor.htm">setContourColor</a></td><td>(Self)</td><td>Sets the colors of the contour lines on the surface.</td></tr><tr><td><a href="SurfaceChart.setWContourColor.htm">setWContourColor</a></td><td>(Self)</td><td>Sets the colors of the w contour lines on the surface.</td></tr><tr><td><a href="SurfaceChart.addSurfaceLine.htm">addSurfaceLine</a></td><td>(Self)</td><td>Adds a line segment to the surface.</td></tr><tr><td><a href="SurfaceChart.addSurfaceLine2.htm">addSurfaceLine2</a></td><td>(Self)</td><td>Adds a multi-segment line to the surface.</td></tr><tr><td><a href="SurfaceChart.addSurfaceZone.htm">addSurfaceZone</a></td><td>(Self)</td><td>Adds a rectangular zone to the surface.</td></tr><tr><td><a href="SurfaceChart.setSurfaceTexture.htm">setSurfaceTexture</a></td><td>(Self)</td><td>Adds a texture image to the surface.</td></tr><tr><td><a href="SurfaceChart.addXYProjection.htm">addXYProjection</a></td><td>(Self)</td><td>Adds a projection of the surface on the XY wall.</td></tr><tr><td><a href="SurfaceChart.getValuesAtPixel.htm">getValuesAtPixel</a></td><td>(Self)</td><td>Gets the (x, y, z, w) values of the surface at the specified image pixel coordinates.</td></tr><tr><td><a href="ThreeDChart.setPlotRegion.htm">setPlotRegion</a></td><td>ThreeDChart</td><td>Sets the position of the plot region.</td></tr><tr><td><a href="ThreeDChart.getPlotRegionWidth.htm">getPlotRegionWidth</a></td><td>ThreeDChart</td><td>Gets the  plot region width.</td></tr><tr><td><a href="ThreeDChart.getPlotRegionDepth.htm">getPlotRegionDepth</a></td><td>ThreeDChart</td><td>Gets the  plot region depth.</td></tr><tr><td><a href="ThreeDChart.getPlotRegionHeight.htm">getPlotRegionHeight</a></td><td>ThreeDChart</td><td>Gets the  plot region height.</td></tr><tr><td><a href="ThreeDChart.setViewAngle.htm">setViewAngle</a></td><td>ThreeDChart</td><td>Sets the 3D view angles.</td></tr><tr><td><a href="ThreeDChart.getElevationAngle.htm">getElevationAngle</a></td><td>ThreeDChart</td><td>Gets the  elevation angle.</td></tr><tr><td><a href="ThreeDChart.getRotationAngle.htm">getRotationAngle</a></td><td>ThreeDChart</td><td>Gets the  rotation angle.</td></tr><tr><td><a href="ThreeDChart.setPerspective.htm">setPerspective</a></td><td>ThreeDChart</td><td>Sets the strength of the perspective effect.</td></tr><tr><td><a href="ThreeDChart.xAxis.htm">xAxis</a></td><td>ThreeDChart</td><td>Retrieves the x-axis of the ThreeDChart object.</td></tr><tr><td><a href="ThreeDChart.yAxis.htm">yAxis</a></td><td>ThreeDChart</td><td>Retrieves the y-axis of the ThreeDChart object.</td></tr><tr><td><a href="ThreeDChart.zAxis.htm">zAxis</a></td><td>ThreeDChart</td><td>Retrieves the z-axis of the ThreeDChart object.</td></tr><tr><td><a href="ThreeDChart.setColorAxis.htm">setColorAxis</a></td><td>ThreeDChart</td><td>Sets the position, length and orientation of the color axis (color legend).</td></tr><tr><td><a href="ThreeDChart.colorAxis.htm">colorAxis</a></td><td>ThreeDChart</td><td>Gets the <a href="ColorAxis.htm">ColorAxis</a> object representing the color axis (color legend).</td></tr><tr><td><a href="ThreeDChart.setWallVisibility.htm">setWallVisibility</a></td><td>ThreeDChart</td><td>Shows or hides the plot region walls.</td></tr><tr><td><a href="ThreeDChart.setWallColor.htm">setWallColor</a></td><td>ThreeDChart</td><td>Sets the color of the plot region walls.</td></tr><tr><td><a href="ThreeDChart.setWallThickness.htm">setWallThickness</a></td><td>ThreeDChart</td><td>Sets the thickness of the plot region walls.</td></tr><tr><td><a href="ThreeDChart.setWallGrid.htm">setWallGrid</a></td><td>ThreeDChart</td><td>Sets the grid line colors on plot region walls.</td></tr><tr><td><a href="ThreeDChart.setZAxisPos.htm">setZAxisPos</a></td><td>ThreeDChart</td><td>Sets the position of the z-axis.</td></tr><tr><td><a href="ThreeDChart.getXCoor.htm">getXCoor</a></td><td>ThreeDChart</td><td>Gets the x pixel coordinate of a point given its x, y and z data values.</td></tr><tr><td><a href="ThreeDChart.getYCoor.htm">getYCoor</a></td><td>ThreeDChart</td><td>Gets the y pixel coordinate of a point given its x, y and z data values.</td></tr><tr><td><a href="BaseChart.setSize.htm">setSize</a></td><td>BaseChart</td><td>Sets the size of the chart, exclusive of the drop shadow (if any).</td></tr><tr><td><a href="BaseChart.getWidth.htm">getWidth</a></td><td>BaseChart</td><td>Gets the width of the chart.</td></tr><tr><td><a href="BaseChart.getHeight.htm">getHeight</a></td><td>BaseChart</td><td>Gets the height of the chart.</td></tr><tr><td><a href="BaseChart.getAbsOffsetX.htm">getAbsOffsetX</a></td><td>BaseChart</td><td>Gets the x offset of the chart relative to the outermost <a href="MultiChart.htm">MultiChart</a> container.</td></tr><tr><td><a href="BaseChart.getAbsOffsetY.htm">getAbsOffsetY</a></td><td>BaseChart</td><td>Gets the y offset of the chart relative to the outermost <a href="MultiChart.htm">MultiChart</a> container.</td></tr><tr><td><a href="BaseChart.setBackground.htm">setBackground</a></td><td>BaseChart</td><td>Sets the background color, border color and 3D border effect of the chart.</td></tr><tr><td><a href="BaseChart.setRoundedFrame.htm">setRoundedFrame</a></td><td>BaseChart</td><td>Sets the border style of the chart to rounded corners.</td></tr><tr><td><a href="BaseChart.setThickFrame.htm">setThickFrame</a></td><td>BaseChart</td><td>Sets a thick frame around the chart.</td></tr><tr><td><a href="BaseChart.setDropShadow.htm">setDropShadow</a></td><td>BaseChart</td><td>Adds a drop shadow to the chart.</td></tr><tr><td><a href="BaseChart.setBorder.htm">setBorder</a></td><td>BaseChart</td><td>Sets the border color of the chart.</td></tr><tr><td><a href="BaseChart.setWallpaper.htm">setWallpaper</a></td><td>BaseChart</td><td>Uses the image from the specified file or resource as the wallpaper to fill the background of the chart.</td></tr><tr><td><a href="BaseChart.setBgImage.htm">setBgImage</a></td><td>BaseChart</td><td>Uses the image from the specified file or resource as the background image of the chart.</td></tr><tr><td><a href="BaseChart.setSearchPath.htm">setSearchPath</a></td><td>BaseChart</td><td>Sets the search path for loading image files.</td></tr><tr><td><a href="BaseChart.setSearchPath2.htm">setSearchPath2</a></td><td>BaseChart</td><td>Sets the ClassLoader for loading images.</td></tr><tr><td><a href="BaseChart.setSearchPath3.htm">setSearchPath3</a></td><td>BaseChart</td><td>Search for image files using the ServletContext and ServletRequest.</td></tr><tr><td><a href="BaseChart.setSearchPath4.htm">setSearchPath4</a></td><td>BaseChart</td><td>Search for image files using a URL as the base path.</td></tr><tr><td><a href="BaseChart.setResource.htm">setResource</a></td><td>BaseChart</td><td>Assigns a resource ID to a memory block to allow it to be referenced using a resource path.</td></tr><tr><td><a href="BaseChart.setResource2.htm">setResource2</a></td><td>BaseChart</td><td>Assigns a resource ID to a <a href="DrawArea.htm">DrawArea</a> object to allow it to be referenced using a resource path.</td></tr><tr><td><a href="BaseChart.setTransparentColor.htm">setTransparentColor</a></td><td>BaseChart</td><td>Specifies a certain color to mean transparent when creating a raster image output.</td></tr><tr><td><a href="BaseChart.setAntiAlias.htm">setAntiAlias</a></td><td>BaseChart</td><td>Controls whether anti-alias is used when drawing lines, shapes and text.</td></tr><tr><td><a href="BaseChart.addTitle.htm">addTitle</a></td><td>BaseChart</td><td>Adds a title at the top center of the chart.</td></tr><tr><td><a href="BaseChart.addTitle2.htm">addTitle2</a></td><td>BaseChart</td><td>Adds a title to the chart.</td></tr><tr><td><a href="BaseChart.addLegend.htm">addLegend</a></td><td>BaseChart</td><td>Adds a legend box to the chart.</td></tr><tr><td><a href="BaseChart.addLegend2.htm">addLegend2</a></td><td>BaseChart</td><td>Adds a legend box to the chart with grid layout.</td></tr><tr><td><a href="BaseChart.getLegend.htm">getLegend</a></td><td>BaseChart</td><td>Gets the <a href="LegendBox.htm">LegendBox</a> object representing the legend box in the chart.</td></tr><tr><td><a href="BaseChart.layoutLegend.htm">layoutLegend</a></td><td>BaseChart</td><td>Lays out and gets the <a href="LegendBox.htm">LegendBox</a> object representing the legend box in the chart.</td></tr><tr><td><a href="BaseChart.getDrawArea.htm">getDrawArea</a></td><td>BaseChart</td><td>Retrieves the internal <a href="DrawArea.htm">DrawArea</a> object that is used to draw the chart.</td></tr><tr><td><a href="BaseChart.addText.htm">addText</a></td><td>BaseChart</td><td>Adds a text box to the chart.</td></tr><tr><td><a href="BaseChart.addTable.htm">addTable</a></td><td>BaseChart</td><td>Adds a CDML table to the chart.</td></tr><tr><td><a href="BaseChart.addLine.htm">addLine</a></td><td>BaseChart</td><td>Adds a line to the chart.</td></tr><tr><td><a href="BaseChart.addExtraField.htm">addExtraField</a></td><td>BaseChart</td><td>Adds an array of text to be used as an extra field in various places.</td></tr><tr><td><a href="BaseChart.addExtraField2.htm">addExtraField2</a></td><td>BaseChart</td><td>Adds an array of numbers/dates to be used as an extra field in various places.</td></tr><tr><td><a href="BaseChart.setColor.htm">setColor</a></td><td>BaseChart</td><td>Change the color at the specified position in the palette.</td></tr><tr><td><a href="BaseChart.setColors.htm">setColors</a></td><td>BaseChart</td><td>Change the colors in the palette.</td></tr><tr><td><a href="BaseChart.setColors2.htm">setColors2</a></td><td>BaseChart</td><td>Change the colors in the palette, starting from the specified position in the palette.</td></tr><tr><td><a href="BaseChart.getColor.htm">getColor</a></td><td>BaseChart</td><td>Gets the color at the specified position of the palette.</td></tr><tr><td><a href="BaseChart.adjustBrightness.htm">adjustBrightness</a></td><td>BaseChart</td><td>Creates a color that is a darkened or brightened version of the given color.</td></tr><tr><td><a href="BaseChart.halfColor.htm">halfColor</a></td><td>BaseChart</td><td>Creates a color that is half the intensity of the given color.</td></tr><tr><td><a href="BaseChart.dashLineColor.htm">dashLineColor</a></td><td>BaseChart</td><td>Creates a dash line color.</td></tr><tr><td><a href="BaseChart.patternColor.htm">patternColor</a></td><td>BaseChart</td><td>Creates a pattern color using an array of colors as the bitmap pattern.</td></tr><tr><td><a href="BaseChart.patternColor2.htm">patternColor2</a></td><td>BaseChart</td><td>Creates a pattern color by using the image from the specified file or resource as the pattern.</td></tr><tr><td><a href="BaseChart.linearGradientColor.htm">linearGradientColor</a></td><td>BaseChart</td><td>Creates a two-point linear gradient color.</td></tr><tr><td><a href="BaseChart.linearGradientColor2.htm">linearGradientColor2</a></td><td>BaseChart</td><td>Creates a multi-point linear gradient color.</td></tr><tr><td><a href="BaseChart.radialGradientColor.htm">radialGradientColor</a></td><td>BaseChart</td><td>Creates a two-point radial gradient color.</td></tr><tr><td><a href="BaseChart.radialGradientColor2.htm">radialGradientColor2</a></td><td>BaseChart</td><td>Creates a multi-point radial gradient color.</td></tr><tr><td><a href="BaseChart.gradientColor.htm">gradientColor</a></td><td>BaseChart</td><td>Creates a two-point linear gradient color.</td></tr><tr><td><a href="BaseChart.gradientColor2.htm">gradientColor2</a></td><td>BaseChart</td><td>Creates a multi-point linear gradient color.</td></tr><tr><td><a href="BaseChart.setDefaultFonts.htm">setDefaultFonts</a></td><td>BaseChart</td><td>Sets the defaults for normal, bold, italic and bold-italic fonts.</td></tr><tr><td><a href="BaseChart.setFontTable.htm">setFontTable</a></td><td>BaseChart</td><td>Sets an entry in the font table to the specified font name.</td></tr><tr><td><a href="BaseChart.formatValue.htm">formatValue</a></td><td>BaseChart</td><td>Formats a number/date using the ChartDirector formatting syntax as is in <a href="paramsub.htm">Parameter Substitution and Formatting</a>.</td></tr><tr><td><a href="BaseChart.setNumberFormat.htm">setNumberFormat</a></td><td>BaseChart</td><td>Sets the characters used for thousand separator, decimal point, and negative sign.</td></tr><tr><td><a href="BaseChart.setMonthNames.htm">setMonthNames</a></td><td>BaseChart</td><td>Sets the names of the months for date/time formatting purposes.</td></tr><tr><td><a href="BaseChart.setWeekDayNames.htm">setWeekDayNames</a></td><td>BaseChart</td><td>Sets the names of the week days for date/time formatting purposes.</td></tr><tr><td><a href="BaseChart.setAMPM.htm">setAMPM</a></td><td>BaseChart</td><td>Sets the names to be used to denote morning and afternoon.</td></tr><tr><td><a href="BaseChart.layout.htm">layout</a></td><td>BaseChart</td><td>Perform auto-scaling of the axes (if any) and compute the positions of the various objects in the chart.</td></tr><tr><td><a href="BaseChart.makeImage.htm">makeImage</a></td><td>BaseChart</td><td>Generates the chart as a java.awt.Image object.</td></tr><tr><td><a href="BaseChart.enableVectorOutput.htm">enableVectorOutput</a></td><td>BaseChart</td><td>This method is deprecated. It has no effect and may be removed in future versions of ChartDirector.</td></tr><tr><td><a href="BaseChart.setOutputOptions.htm">setOutputOptions</a></td><td>BaseChart</td><td>Sets output format options for the next chart output.</td></tr><tr><td><a href="BaseChart.makeChart.htm">makeChart</a></td><td>BaseChart</td><td>Generates the chart image and save it into a file.</td></tr><tr><td><a href="BaseChart.makeChart2.htm">makeChart2</a></td><td>BaseChart</td><td>Generates the chart as an image in memory.</td></tr><tr><td><a href="BaseChart.makeChart3.htm">makeChart3</a></td><td>BaseChart</td><td>Generates the chart in internal format and return a <a href="DrawArea.htm">DrawArea</a> object to allow adding custom drawings on top of the chart.</td></tr><tr><td><a href="BaseChart.makeSession.htm">makeSession</a></td><td>BaseChart</td><td>Generates the chart as an image, saves it to a session variable and returns query parameters for loading the image.</td></tr><tr><td><a href="BaseChart.makeTmpFile.htm">makeTmpFile</a></td><td>BaseChart</td><td>Generates the chart as an image and save it to a temporary file, and automatically remove old files.</td></tr><tr><td><a href="BaseChart.initDynamicLayer.htm">initDynamicLayer</a></td><td>BaseChart</td><td>Initializes a dynamic layer for drawing text and shapes.</td></tr><tr><td><a href="BaseChart.removeDynamicLayer.htm">removeDynamicLayer</a></td><td>BaseChart</td><td>Removes the dynamic layer if any.</td></tr><tr><td><a href="BaseChart.getHTMLImageMap.htm">getHTMLImageMap</a></td><td>BaseChart</td><td>Generates an HTML image map to define hot spots and tooltips for the chart.</td></tr><tr><td><a href="BaseChart.getJsChartModel.htm">getJsChartModel</a></td><td>BaseChart</td><td>Gets the <a href="jschartmodel.htm">Javascript Chart Model</a> for passing to <a href="WebChartViewer.setChartModel.htm">WebChartViewer.setChartModel</a> for the purpose of supporting track cursors in a web application.</td></tr><tr><td><a href="BaseChart.getChartMetrics.htm">getChartMetrics</a></td><td>BaseChart</td><td>Gets the chart metrics for passing to <a href="WebChartViewer.setChartMetrics.htm">WebChartViewer.setChartMetrics</a>  to support viewports for web applications.</td>
</tr>
</table>
</div>

</div>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
